﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpcSelfHost.WebApi.model
{
    /// <summary>
    /// PLC转发配置列表实体
    /// </summary>
	public class PlcSendConfig
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }
        public string read_ip { get; set; }

        public short read_rack { get; set; }
        public short read_slot { get; set; }
        public int read_db { get; set; } 
        public string read_cputype { get; set; }
        public int read_startadr { get; set; }
        public int read_count { get; set; } 
        public int read_sec { get; set; }
        public string write_ip { get; set; }

        public short write_rack { get; set; }
        public short write_slot { get; set; }
        public int write_db { get; set; }
        public string write_cputype { get; set; }
        public int write_startadr { get; set; }

        [SugarColumn(IsNullable = true)]
        public string read_value { get; set; } 

        public DateTime CreateTime { get; set; }

    }
}
